package com.fy.tt.service;


import com.fy.tt.entity.Sentence;
import com.fy.tt.entity.query.SentenceQuery;
import com.fy.tt.entity.vo.SentenceVo;

import java.util.List;

public interface SentenceService {
    List<SentenceVo> getAllSentences();
    int getTotalSentence(SentenceQuery sentenceQuery);
    int addSentence(Sentence sentence);
    int deleteSentence(int id);
    int updateSentence(Sentence sentence);
    // 分页查询
    List<Sentence> getPageSentences(int pageSize, int current);

    List<SentenceVo> getConditionPageSentences(SentenceQuery sentenceQuery, int pageSize, int current);

    List<SentenceVo> getLastSaveSentence();
}
